<extend name="Public:layout"/>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder"> 分类列表</strong></div>
        <div class="container-fluid">
            <div class="row padding">
                <a class="btn btn-primary icon-plus" href="{:U('edit')}"> 添加分类</a>
            </div>
        </div>

        <table class="table table-hover text-center">
            <thead>
            <tr>
                <th width="100" style="text-align:left; padding-left:20px;">ID</th>
                <th width="100">分类名称</th>
                <!--<th>状态</th>-->
                <th width="310">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td style="text-align:left; padding-left:20px;">{$vo.category_id}</td>
                    <td>{$vo.category_name}</td>
                    <!--<td>{$vo['status'] ? '<div class="btn btn-info">正常</div>':'<div class="btn btn-danger">禁用</div>'}</td>-->
                    <td>
                        <div class="btn-group">
                            <a class="btn btn-primary" href="{:U('edit', 'category_id='.$vo['category_id'])}"><span class="icon-edit"></span> 修改</a>
                            <!--<a class="btn btn-info ajax-click" href="javascript:void(0)" data-url="{:U('ban', 'category_id='.$vo['category_id'].'&status='.!$vo['status'])}"><span class="icon-edit"></span> {$vo['status'] ? '禁用' : '启用'}</a>-->
                            <!--<a class="btn btn-danger ajax-click" href="javascript:void(0)" data-url="{:U('del', 'category_id='.$vo['category_id'])}"><span class="icon-trash-o"></span> 删除</a>-->
                        </div>
                    </td>
                </tr>
            </volist>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="8"><div class="pagelist"> {$page} </div></td>
            </tr>
            </tfoot>
        </table>
    </div>
</block>